package com.lhh.adminlte.controller;

import com.lhh.adminlte.base.LTEUser;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/5/10 14:18
 * @Description:
 */
public class BaseController {

    public LTEUser getUser(){
        Subject subject = SecurityUtils.getSubject();
        LTEUser user = (LTEUser) subject.getPrincipal();
        return user;
    }


}
